﻿#{extends 'main.html' /}
#{set title:'Editar Usuário' /}

#{if flash.error}
	<div 	class = "msgInfo">
		<p>
			${flash.error}
		</p>
	</div>
#{/if}

<form method="post" action="@{CUsuario.editarUsuario()}">
	<input type="hidden" name= "idUsuario" id="idUsuario" value="${usuario.getId()}"/>
	<input type="hidden" name= "login" id="login" value="${usuario.getLogin()}"/>
	<table>
		<tr>
			<td><label>Login: ${usuario.getLogin()}</label></td>
		</tr>
		<tr>
			<td><label>Usuário</label></td>
			<td><input name="usuario" id="usuario" type="text" tabindex="1" size="25" value="${usuario.getUsuario()}"></td>
		</tr>
		<tr>
			<td><label>Email</label></td>
			<td><input name="email" id="email" type="text" tabindex="2" size="25" value="${usuario.getEmail()}"></td>
		</tr>
		<tr>
			<td><label>Nova senha</label></td>
			<td><input name="senha" id="senha" type="password" tabindex="3" size="25" value = ""></td>
		</tr>
		<tr>
			<td><label>Confirmar senha</label></td>
			<td><input name="confirmarsenha" id="confirmarsenha" type="password" tabindex="4" size="25" value = "" ></td>
		</tr>
		<tr>
			<td></td>
			<td> <input type="submit" name="sbCadastrar" id="sbCadastrar" value="Salvar" tabindex="5">
			<input type="button" name="btCancelar" id="btCancelar" value="Cancelar" tabindex="6" onclick = "javascript:window.location = '@{Application.index()}'"> </td>
    </tr>
	
	</table>
</form>